//ScreenCapture.h

#pragma once

class ScreenCapture : public base::_class
{
protected:
	int scrW,scrH;
	int _captureCount;
	base::DC _screenDC;
	base::DrawBitmap	_screenBmp;
	base::Memory<char>	_screenData;
	base::PreciTimer	_refeshTimer;
	base::Listen		_server;
	base::ObjectList<TCPStream> _andClient;

	void _OnRefresh(UINT,LPARAM);
	void _OnAccept(SOCKET socket);
public:
	//ScreenCapture();
	//~ScreenCapture();
	void Create();
	void WaitClose();
};